<%@page import="com.lewin.ConnectDB"%>
<%@page import="com.lewin.SanPham"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="NewFile.css" />
<title>Edit Product</title>
</head>
<body>
<div id="page">

  <a href="Home.jsp" id="top"><img src="C:\Users\suker\workspace\DoAnCuoiKi\WebContent\WEB-INF\Images\banner.jpg" 
  alt="banner" width="950px" height="auto" /></a>
  <div id="navigation" style="border-top:1px solid #d6d6d6;
	border-bottom:1px solid #d6d6d6">
    <a href="Home.jsp">HOME</a>
    <a href="index.jsp">LIST OF PRODUCT</a>
  </div>
<% SanPham sp = new ConnectDB().getProductByID(request.getParameter("MaMH")); %>
<form action="Edit">
 <h1>Edit Product</h1>
 <table>
 <tr>
 <td style="text-align: left">Mã Sản Phẩm</td>
 <td><input type="text" name="MaMH" value="<%=sp.getMaMH()%>" readonly="readonly"></td>
 </tr>
 <tr>
 <td style="text-align: left">Tên Sản Phẩm</td>
 <td><input type="text" name="TenMH" value="<%=sp.getTenMH()%>"></td>
 </tr>
 <tr>
 <td style="text-align: left">Loại Sản Phẩm</td>
 <td><input type="text" name="LoaiMH" value="<%=sp.getLoaiMH()%>" /></td>
 </tr>
 <tr>
 <td style="text-align: left">Đơn Giá</td>
 <td><input type="text" name="DonGia" value="<%=sp.getDonGia()%>" /></td>
 </tr>
 <tr>
 <td style="text-align: left">Hình</td>
 <td><input type="text" name="Hinh" value="<%=sp.getHinh()%>" /></td>
 </tr>
 <tr>
 <td></td>
 <td colspan="2" align="right">
 <button type="submit" name="update">Update</button>
 <button type="reset" name="reset">Reset</button>
 </td>
 </tr>
 </table>
</form>
</div>
</body>
</html>